var mongoose=require('mongoose');
var mongoosePaginate= require('mongoose-paginate');
var UserSchema=new mongoose.Schema({
    name:String,
    password:String,
});
UserSchema.plugin(mongoosePaginate);//使用了分页插件

module.exports = mongoose.model('User',UserSchema);//model.paginate()模型分页 modal模式 module模块